
package org.GUI.Modules;
import javax.swing.*;

public class ComboBoxArray extends JFrame{

	String[] CBoxOptions = {"RSS", "Atom", "XML"};
	JComboBox JCbox = new JComboBox();
	
	public ComboBoxArray() {
		super("Combo Box in Array");
		setBounds(100, 100, 300, 100);
		
		JPanel Jp = new JPanel();
		JLabel Jl = new JLabel("Choose the Feed Format: ");
		Jp.add(Jl);
		
		for (int i = 0; i < CBoxOptions.length; i++ ) {
			JCbox.addItem(CBoxOptions[i]);
			Jp.add(JCbox);
		}
		add(Jp);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setVisible(true);
		
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ComboBoxArray CBox = new ComboBoxArray();

	}

}
